﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SPlusres.Controller;

namespace SPlusres.Controllers
{
    public class HomeController : BaseController
    {
        /// <summary>
        /// Home Page Action Result
        /// </summary>
        /// <returns>Home Page View</returns>
        public ViewResult Index()
        {
            return View();
        }

        /// <summary>
        /// About Page
        /// </summary>
        /// <returns></returns>
        public ViewResult About()
        {
            return View();
        }

        /*//////////////////////////////////////////////////////////////////////////////////////////////////////////
         * 
         * Register Action Group
         * 
        ////////////////////////////////////////////////////////////////////////////////////////////////////////*/
        /// <summary>
        /// Register Page
        /// </summary>
        /// <returns>Page</returns>
        [HttpGet]
        public ActionResult Register()
        {
            return View();
        }

        /// <summary>
        /// User Register Action
        /// </summary>
        /// <param name="model">User Data Model</param>
        /// <returns>Message</returns>
        [HttpPost]
        public JsonResult Register(Data.UserInfo model)
        {
            return Json(Business.Common.UserInfo.Register(model));
        }
        ///////////////////////////////////////////////////////////////////////////////////////////////////////////

        /// <summary>
        /// Download File Action
        /// </summary>
        /// <returns></returns>
        public ViewResult DownLoad()
        {
            return View();
        }
    }
}
